<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>
<script>
    let arr = [1, 2, [3, 4, 5], [{ name: 'zs', age: 18 }, { name: 'ls', age: 20 }, [6, 8]]]
    let arr1 = arr.flat(1)
    console.log(arr1);
</script>

</html>